<div id="api_key_settings" class="panel panel-default">
  <header class="panel-heading">
    <h5><%= link_to t('settings.api_key.briefing'), "javascript:void(0);", class: 'accordion-toggle', "data-toggle" => 'collapse', "data-parent" => "#settings-accordion", "data-target" => "#api_key_settings_content" %></h5>
  </header>
    
 
  <div class="panel-body collapse" id="api_key_settings_content">
    <div class="form_row">
       <%=t('settings.api_key.explanation') %>: <span id="api_token"><%= current_subject.authentication_token.blank? ? t('settings.api_key.empty') : current_subject.authentication_token %></span>
    </div>
    <div class="form_sub_row">
        <%= link_to t('settings.api_key.regenerate'), api_keygen_path(:api_settings => true), :confirm => t('settings.api_key.confirm'), :remote => true, :class => "btn btn-primary" %>
    </div>
  </div>
</div>
